﻿using Entity.Models.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity.Models.dto
{
    /// <summary>
    /// 工作流模板DTO
    /// </summary>
    public class WorkFlow_ModelDTO
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 模板标题
        /// </summary>
        public string _title { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string _description { get; set; }



        /// <summary>
        /// 创建时间
        /// </summary>
        public string _createTime { get; set; }


        public WorkFlow_ModelDTO(WorkFlow_Model workFlow_Model)
        {
            Id = workFlow_Model.Id;
            _title = workFlow_Model.Title;
            _description = workFlow_Model.Description;
            _createTime = workFlow_Model.CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
